package cn.edu.swu.gyt;

public class Course {
    private String courseId;
    private String courseName;
    private String teacher;

    public Course(){}
    public Course(String Id,String Name,String teacher){
        setCourseId(Id);
        setCourseName(Name);
        setTeacher(teacher);
    }

    public String getCourseId() {
        return courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public void showInfo(){
        System.out.println("课程编号"+courseId);
        System.out.println("课程名称："+courseName);
        System.out.println("任课教师："+teacher);
        System.out.println("-------------------");
    }
}
